package com.metagurukul.metaspace.models.beans;

import java.sql.Date;


/**
 * @author ritesh
 * created date : 5/10/2012
 */
public class UserPersonalDetail {
	private int userId = -1;
	private String name = null;
	private String contact = null;
	private char gender = 'N';
	private String profilePicPath = null;
	private String userName = null;
	private Date date = null;
	
	
	/**
	 * @return userId int
	 */
	public int getUserId() {
		return userId;
	}
	
	/**
	 * @param userId int
	 */
	public void setUserId(int userId) {
		this.userId = userId;
	}
	
	/**
	 * @return firstName String
	 */
	public String getName() {
		return name;
	}
	
	/**
	 * @param firstName String
	 */
	public void setName(String name) {
		if(this.name != null && 50 < this.name.length()){
			throw new StringIndexOutOfBoundsException("first name size too long");
		}
		this.name = name;
	}
	
	/**
	 * @return contact
	 */
	public String getContact() {
		return contact;
	}
	
	/**
	 * @param contact
	 */
	public void setContact(String contact) {
		this.contact = contact;
	}
	
	/**
	 * @return gender
	 */
	public char getGender() {
		return gender;
	}
	
	/**
	 * @param gender
	 */
	public void setGender(char gender) {
		this.gender = gender;
	}

	/**
	 * @return profilePicPath
	 */
	public String getProfilePicPath() {
		return profilePicPath;
	}
	
	/**
	 * @param profilePicPath
	 */
	public void setProfilePicPath(String profilePicPath) {
		this.profilePicPath = profilePicPath;
	}
	
	
	/**
	 * @return userName
	 */
	public String getUserName() {
		return userName;
	}
	
	/**
	 * @param userName
	 */
	public void setUserName(String userName) {
		if(this.userName != null && 50 < this.userName.length()){
			throw new StringIndexOutOfBoundsException("last name size too long");
		}
		this.userName = userName;
	}

	/**
	 * @return
	 */
	public Date getDate() {
		return date;
	}

	/**
	 * @param date
	 */
	public void setDate(Date date) {
		this.date = date;
	}
	
}
